package _8_inherit;

public class Test1 
{
	public static void main(String[]args)
	{
		//方法的重写
		Dog dog = new Dog();
		dog.eat();
		Cat cat = new Cat();
		cat.eat();
	}

}
